package com.photoeditor.demo.statistics;

import com.photoeditor.demo.app.AppApplication;

/**
 * 商店内容更新通知栏统计
 * Created by Lai on 2018/1/30 0030.
 */

public class NotifyStoreUpdateStatisticUtil {


    public static void statisticDownload(String pkgName) {
        NotifyStoreUpdateStatisticBean bean = AppApplication.getApplication().getNotifyStoreContentStatisticBean();
        if(bean != null) {
            bean.statisticDownload(pkgName);
        }
    }

    public static void statisticApply(String pkgName) {
        NotifyStoreUpdateStatisticBean bean = AppApplication.getApplication().getNotifyStoreContentStatisticBean();
        if(bean != null) {
            bean.statisticApply(pkgName);
        }
    }

    public static void statisticShare(String share) {
        NotifyStoreUpdateStatisticBean bean = AppApplication.getApplication().getNotifyStoreContentStatisticBean();
        if(bean != null) {
            bean.statisticShare(share);
        }
    }

    public static void clear() {
        AppApplication.getApplication().setNotifyStoreContentStatisticBean(null);
    }
}
